package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.domain.DestinationTemplate;
import cn.wolfcode.luowowo.search.domain.StrategyTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DestinationSearchRepository extends ElasticsearchRepository<DestinationTemplate,Long> {
    /**
     * 通过名字查询对象
     * @param name
     * @return
     */
    DestinationTemplate findByName(String name);
}
